<div class="wrap" style="height: auto;padding-bottom: 10px;">
	<h2>Easter Calendar Facebook App</h2>
	<!-- <h4>Easter Calendar Facebook App Management System</h4> -->
	<?php if($view->error){?>
	<div class="alert alert-error"><?php echo $view->error;?></div>
	<?php } ?>
        <?php if(isset($_GET['info'])){?>
	<div class="alert alert-success"><?php echo $_GET['info'];?></div>
	<?php } ?>
	<form action="" autocomplete="off" method="post" class="validate">
		<div class="login">                        
                        <?php if(isset($_GET['verify'])){ ?>
                        <div class="email">
				<label for="verificationcode">Verify code</label>
				<div class="email-input">
					<div class="input-prepend">
						<input style="width:216px !important" type="text" id="verificationcode" name="verificationcode" value="">
					</div>
				</div>
			</div>
                        <?php } elseif(isset($_GET['type']) && ($_GET['type'] == "lostpassword")){ ?>
                        <?php if((count($_POST)> 0) && ($this->view->error == "")) {?>
                            <div class="alert alert-info">An email with instructions on how to reset your password has been sent to the email address registered on your account.</div>
                        <?php } else { ?>
                            <input type="hidden" name="type" value="lostpassword" />
                            <div class="email">
                                    <label for="username">Username</label>
                                    <div class="email-input">
                                            <div class="input-prepend">
                                                    <input class="required" style="width:216px !important" type="text" id="username" name="username" value="">
                                            </div>
                                    </div>
                            </div>
                        <?php } ?>
                        <?php } elseif(isset($_GET['type']) && ($_GET['type'] == "resetpassword")) { ?>                        
                        <div class="alert">Please enter new password for <b><?php echo $_GET['username'];?></b></div>
                        <input type="hidden" name="type" value="resetpassword" />
                        <input type="hidden" name="resetkey" value="<?php echo $_GET['resetkey'];?>" />
                        <input type="hidden" name="username" value="<?php echo $_GET['username'];?>" />
                        <div class="pw">
				<label for="pw">Password</label>
				<div class="pw-input">
					<div class="input-prepend">
						<span class="add-on"><i class="icon-lock"></i></span><input
							type="password" id="pw" name="password">
					</div>
				</div>
			</div>                        
                        <?php } else { ?>
                        <div class="email">
				<label for="username">Username</label>
				<div class="email-input">
					<div class="input-prepend">
						<input style="width:216px !important" type="text" id="user" name="data[username]" value="<?php echo @$_GET['username'];?>">
					</div>
				</div>
			</div>
			<div class="pw">
				<label for="pw">Password</label>
				<div class="pw-input">
					<div class="input-prepend">
						<span class="add-on"><i class="icon-lock"></i></span><input
							type="password" id="pw" name="data[password]">
					</div>
				</div>
			</div>
                        <?php } ?>
		</div>
		<div class="submit">
                        <?php if($_GET['type'] == "lostpassword" || $_GET['type'] == "resetpassword"){?>
                        <a href="?action=login">Login</a>
                        <?php } else { ?>
                        <a href="?action=login&type=lostpassword">Lost password?</a>
                        <?php } ?>
                        <!--
			<a href="?action=signup">Sign up new account</a>
                        -->
			<button class="btn btn-red5"><?php if($_GET['type'] == "lostpassword" || $_GET['type'] == "resetpassword"){?> Reset password<?php } else {?>Login<?php } ?></button>
		</div>
	</form>
</div>